home *** CD-ROM | disk | FTP | other *** search
- on mouseUp
- global kingcolor, mycolor, colpal, level1, thissprite, cursorset, myclickon, canclicked, curdraw, curmask
- set cursorset to 1
- if (myclickon > 0) and (myclickon <> the clickOn) then
- set rexi to the name of cast the castNum of sprite myclickon
- set rexi to char 1 to the number of chars in rexi - 1 of rexi
- set the castNum of sprite myclickon to the number of cast rexi
- updateStage()
- end if
- set myclickon to the clickOn
- set thissprite to the name of cast the castNum of sprite myclickon
- if char the number of chars in thissprite of thissprite <> "i" then
- set kingcolor to value(char 5 to the number of chars in thissprite of thissprite)
- if not (the machineType = 256) then
- colorcrsr(mGetSetCursor, 127 + kingcolor)
- else
- cursor([curdraw, curmask])
- end if
- if getAt(canclicked, kingcolor) = 0 then
- setAt(canclicked, kingcolor, 1)
- if level1 = 1 then
- repeat with xxxx = 38 to 41
- if not (myclickon = xxxx) then
- puppetSprite(xxxx + 4, 1)
- next repeat
- end if
- puppetSprite(xxxx + 4, 0)
- set the visible of sprite (xxxx + 4) to 1
- end repeat
- play frame "bigcanname." & kingcolor
- repeat with xxxx = 42 to 45
- puppetSprite(xxxx, 0)
- end repeat
- else
- play frame "smallcanname." & kingcolor
- end if
- end if
- restorecans()
- updateStage()
- set the castNum of sprite myclickon to the number of cast (thissprite & "i")
- end if
- end
-